<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SubGit - Git与SVN的无缝桥接工具</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Hiragino Sans GB", Simsun, sans-serif;
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }
        .hero {
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
            color: white;
        }
        .feature-card {
            transition: all 0.3s ease;
            border-radius: 12px;
            overflow: hidden;
        }
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        .icon-box {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }
        .footer {
            background-color: #1a1a1a;
            color: #f8f9fa;
        }
        .footer a:hover {
            color: #a777e3;
        }
        .mermaid {
            background-color: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .section-title {
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 30px;
        }
        .section-title:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #6e8efb 0%, #a777e3 100%);
            border-radius: 2px;
        }
        .drop-cap:first-letter {
            float: left;
            font-size: 3.5em;
            line-height: 0.8;
            margin: 0.1em 0.15em 0 0;
            color: #6e8efb;
            font-family: 'Noto Serif SC', serif;
            font-weight: 700;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="bg-white shadow-sm py-4 sticky top-0 z-50">
        <div class="container mx-auto px-6 flex justify-between items-center">
            <div class="flex items-center">
                <i class="fas fa-code-branch text-2xl text-purple-600 mr-2"></i>
                <span class="text-xl font-bold text-gray-800">SubGit</span>
            </div>
            <div class="hidden md:flex space-x-8">
                <a href="#overview" class="text-gray-700 hover:text-purple-600 transition">概述</a>
                <a href="#features" class="text-gray-700 hover:text-purple-600 transition">功能</a>
                <a href="#workflow" class="text-gray-700 hover:text-purple-600 transition">工作原理</a>
                <a href="#scenarios" class="text-gray-700 hover:text-purple-600 transition">应用场景</a>
            </div>
            <button class="md:hidden text-gray-700">
                <i class="fas fa-bars text-xl"></i>
            </button>
        </div>
    </nav>

    <!-- Hero 区域 -->
    <section class="hero py-20 md:py-32">
        <div class="container mx-auto px-6 text-center">
            <h1 class="text-4xl md:text-5xl font-bold mb-6 leading-tight">SubGit - Git与SVN的无缝桥接工具</h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90 max-w-3xl mx-auto">实现传统SVN仓库与现代Git工作流的完美融合，让版本控制迁移无忧</p>
            <div class="flex justify-center space-x-4">
                <a href="#features" class="bg-white text-purple-600 px-8 py-3 rounded-full font-medium hover:bg-gray-100 transition shadow-md">探索功能</a>
                <a href="#workflow" class="border-2 border-white text-white px-8 py-3 rounded-full font-medium hover:bg-white hover:bg-opacity-10 transition">工作原理</a>
            </div>
        </div>
    </section>

    <!-- 概述部分 -->
    <section id="overview" class="py-16 bg-white">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto">
                <h2 class="text-3xl font-bold mb-8 section-title">概述</h2>
                <div class="drop-cap mb-8 text-lg text-gray-700 leading-relaxed">
                    SubGit 是一个用于将 Git 和 Subversion (SVN) 版本控制系统互相转换的桥接工具。它使得 Subversion (SVN) 用户能够将现有的 SVN 仓库转换为 Git 仓库，或者在 Git 仓库和 SVN 仓库之间进行双向同步。这种工具对于那些在使用 SVN 的大型组织或者已经建立的 SVN 仓库中，希望逐步过渡到 Git 或者需要双向兼容的场景尤为有用。
                </div>
                <div class="bg-blue-50 border-l-4 border-blue-500 p-6 rounded-r-lg mb-8">
                    <div class="flex items-start">
                        <div class="flex-shrink-0">
                            <i class="fas fa-info-circle text-blue-500 text-xl"></i>
                        </div>
                        <div class="ml-3">
                            <h3 class="text-lg font-medium text-blue-800">为什么选择SubGit？</h3>
                            <p class="mt-2 text-blue-700">SubGit提供了无缝的迁移体验，保留了完整的历史记录，同时支持双向同步，是组织从SVN迁移到Git的理想选择。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 功能部分 -->
    <section id="features" class="py-16 bg-gray-50">
        <div class="container mx-auto px-6">
            <h2 class="text-3xl font-bold mb-12 text-center section-title">SubGit 的功能和作用</h2>
            <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-8">
                <!-- 功能卡片1 -->
                <div class="feature-card bg-white p-8 shadow-md">
                    <div class="icon-box bg-purple-100 text-purple-600">
                        <i class="fas fa-exchange-alt text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">Git 和 SVN 的互操作性</h3>
                    <p class="text-gray-600">支持SVN到Git的迁移和双向同步，允许在两个系统中并行开发，保证代码库同步。</p>
                </div>
                <!-- 功能卡片2 -->
                <div class="feature-card bg-white p-8 shadow-md">
                    <div class="icon-box bg-blue-100 text-blue-600">
                        <i class="fas fa-history text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">保持历史记录</h3>
                    <p class="text-gray-600">迁移过程中完整保留SVN仓库中的所有提交记录、版本历史和分支信息。</p>
                </div>
                <!-- 功能卡片3 -->
                <div class="feature-card bg-white p-8 shadow-md">
                    <div class="icon-box bg-green-100 text-green-600">
                        <i class="fas fa-puzzle-piece text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">解决兼容性问题</h3>
                    <p class="text-gray-600">将SVN的版本控制模式映射到Git中，减轻因系统差异带来的兼容性问题。</p>
                </div>
                <!-- 功能卡片4 -->
                <div class="feature-card bg-white p-8 shadow-md">
                    <div class="icon-box bg-yellow-100 text-yellow-600">
                        <i class="fas fa-project-diagram text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">支持现有工作流</h3>
                    <p class="text-gray-600">无需完全改变现有工作流程即可迁移到Git，减少迁移阻力和学习曲线。</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 工作原理 -->
    <section id="workflow" class="py-16 bg-white">
        <div class="container mx-auto px-6">
            <h2 class="text-3xl font-bold mb-12 section-title">SubGit 的工作原理</h2>
            <div class="grid md:grid-cols-2 gap-12 items-center">
                <div>
                    <h3 class="text-2xl font-bold mb-6 text-gray-800">系统架构与同步流程</h3>
                    <div class="space-y-6">
                        <div class="flex items-start">
                            <div class="flex-shrink-0 bg-purple-100 rounded-lg p-3 mr-4">
                                <i class="fas fa-cog text-purple-600"></i>
                            </div>
                            <div>
                                <h4 class="font-bold text-lg mb-2 text-gray-800">配置与安装</h4>
                                <p class="text-gray-600">SubGit安装在Git仓库根目录，创建配置文件定义SVN仓库位置和同步设置。</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 bg-blue-100 rounded-lg p-3 mr-4">
                                <i class="fas fa-sync-alt text-blue-600"></i>
                            </div>
                            <div>
                                <h4 class="font-bold text-lg mb-2 text-gray-800">同步过程</h4>
                                <p class="text-gray-600">建立Git和SVN仓库间的映射关系，转换提交历史、分支和标签信息。</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 bg-green-100 rounded-lg p-3 mr-4">
                                <i class="fas fa-adjust text-green-600"></i>
                            </div>
                            <div>
                                <h4 class="font-bold text-lg mb-2 text-gray-800">处理差异</h4>
                                <p class="text-gray-600">解决SVN和Git间的差异，包括文件属性、分支结构和标签等问题。</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 bg-yellow-100 rounded-lg p-3 mr-4">
                                <i class="fas fa-code-branch text-yellow-600"></i>
                            </div>
                            <div>
                                <h4 class="font-bold text-lg mb-2 text-gray-800">版本管理</h4>
                                <p class="text-gray-600">支持完整的版本管理功能，确保操作能正确反映到SVN和Git仓库中。</p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="mermaid">
                    graph TD
                    A[SVN 仓库] -->|同步| B[SubGit 桥接]
                    B -->|转换| C[Git 仓库]
                    C -->|提交| B
                    B -->|更新| A
                    D[开发人员] -->|Git操作| C
                    E[SVN用户] -->|SVN操作| A
                </div>
            </div>
        </div>
    </section>

    <!-- 应用场景 -->
    <section id="scenarios" class="py-16 bg-gray-50">
        <div class="container mx-auto px-6">
            <h2 class="text-3xl font-bold mb-12 section-title">典型应用场景</h2>
            <div class="grid md:grid-cols-3 gap-8">
                <!-- 场景1 -->
                <div class="bg-white p-8 rounded-xl shadow-md">
                    <div class="text-purple-600 mb-4">
                        <i class="fas fa-building text-4xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">组织迁移</h3>
                    <p class="text-gray-600">当一个组织决定从SVN迁移到Git时，SubGit可以帮助平滑过渡，避免在迁移过程中丢失数据。</p>
                </div>
                <!-- 场景2 -->
                <div class="bg-white p-8 rounded-xl shadow-md">
                    <div class="text-blue-600 mb-4">
                        <i class="fas fa-code text-4xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">双向开发</h3>
                    <p class="text-gray-600">某些组织可能需要同时在SVN和Git中开发，SubGit允许在这两者之间进行双向同步，满足不同团队的需求。</p>
                </div>
                <!-- 场景3 -->
                <div class="bg-white p-8 rounded-xl shadow-md">
                    <div class="text-green-600 mb-4">
                        <i class="fas fa-archive text-4xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3 text-gray-800">保持历史</h3>
                    <p class="text-gray-600">对于需要保留历史记录的项目，SubGit能够保留SVN仓库中的所有提交记录，并将其迁移到Git中。</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 对比表格 -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-6">
            <h2 class="text-3xl font-bold mb-12 text-center section-title">SubGit与传统迁移工具对比</h2>
            <div class="overflow-x-auto">
                <table class="min-w-full bg-white rounded-lg overflow-hidden">
                    <thead class="bg-gray-100">
                        <tr>
                            <th class="py-3 px-6 text-left font-bold text-gray-700">特性</th>
                            <th class="py-3 px-6 text-left font-bold text-gray-700">SubGit</th>
                            <th class="py-3 px-6 text-left font-bold text-gray-700">传统工具</th>
                        </tr>
                    </thead>
                    <tbody class="divide-y divide-gray-200">
                        <tr>
                            <td class="py-4 px-6 font-medium">双向同步</td>
                            <td class="py-4 px-6"><i class="fas fa-check text-green-500"></i> 支持</td>
                            <td class="py-4 px-6"><i class="fas fa-times text-red-500"></i> 不支持</td>
                        </tr>
                        <tr class="bg-gray-50">
                            <td class="py-4 px-6 font-medium">历史保留</td>
                            <td class="py-4 px-6"><i class="fas fa-check text-green-500"></i> 完整保留</td>
                            <td class="py-4 px-6">部分保留</td>
                        </tr>
                        <tr>
                            <td class="py-4 px-6 font-medium">迁移难度</td>
                            <td class="py-4 px-6">简单</td>
                            <td class="py-4 px-6">复杂</td>
                        </tr>
                        <tr class="bg-gray-50">
                            <td class="py-4 px-6 font-medium">工作流支持</td>
                            <td class="py-4 px-6"><i class="fas fa-check text-green-500"></i> 完全支持</td>
                            <td class="py-4 px-6">有限支持</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="footer py-12">
        <div class="container mx-auto px-6">
            <div class="flex flex-col items-center">
                <div class="text-2xl font-bold mb-4">
                    <span class="text-white">技术小馆</span>
                </div>
                <div class="text-gray-400 mb-6">
                    <a href="http://www.yuque.com/jtostring" class="hover:text-white transition">http://www.yuque.com/jtostring</a>
                </div>
                <div class="flex space-x-6 text-xl">
                    <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-github"></i></a>
                    <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter"></i></a>
                    <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-linkedin"></i></a>
                </div>
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>